package com.hx.study.domain;

import com.hx.common.annotation.Excel;
import com.hx.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 候选答案对象 el_question_answer
 *
 * @author user
 * @date 2022-06-06
 */
public class QuestionAnswer extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 答案ID
     */
    private Integer id;

    /**
     * 问题ID
     */
    @Excel(name = "问题ID")
    private Integer questionId;

    /**
     * 是否正确
     */
    @Excel(name = "是否正确")
    private String status;

    /**
     * 答案内容
     */
    @Excel(name = "答案内容")
    private String text;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }

    public Integer getQuestionId() {
        return questionId;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getText() {
        return text;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("questionId", getQuestionId())
                .append("status", getStatus())
                .append("text", getText())
                .toString();
    }
}
